#include <QDialog>
#include <QLabel>
#include <QScrollArea>
#include <QPushButton>
#include <QVBoxLayout>

class MyMessageBox : public QDialog
{
    Q_OBJECT

public:
    MyMessageBox(QWidget *parent = 0, const QString &title = "", const QString &mess = "");
    void warning(QWidget *parent = 0, const QString &title = "", const QString &mess = "");
    void about(QWidget *parent = 0, const QString &title = "", const QString &mess = "");
    void critical(QWidget *parent = 0, const QString &title = "", const QString &mess = "");
    void information(QWidget *parent = 0, const QString &title = "", const QString &mess = "");


private:
    QLabel *label;
    QScrollArea *scroll;
    QPushButton *okButton;
    // QGridLayout *layout;
    QVBoxLayout *layout;
};
